// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'

import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
Vue.use(MintUI)

import { Field } from 'mint-ui';
Vue.component(Field.name, Field);

import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);


import { Header } from 'mint-ui';
Vue.component(Header.name, Header);

import Vuex from "vuex"
Vue.use(Vuex)

import App from './App'
import router from './router'

import Axios from 'axios'
Vue.prototype.axios = Axios;

import { Button } from 'mint-ui';
Vue.component(Button.name, Button);

Axios.defaults.baseURL="http://123.57.130.65:8080/user";
// Axios.defaults.baseURL = "https://bufferc.store:8443/user";

import { Tabbar, TabItem } from 'mint-ui';
Vue.component(Tabbar.name, Tabbar);
Vue.component(TabItem.name, TabItem);

import { Badge } from 'mint-ui';
Vue.component(Badge.name, Badge);

Vue.config.productionTip = false
import store from './tools/store';

new Vue({
  el: '#app',

  router: router,
  store,
  components: { App },
  template: '<App/>',
})

